﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop.Core.Domain.Catalog
{

    /// <summary>
    /// Represents a product tag
    /// </summary>
    public partial class ProductTag : BaseEntity<int>
    {
        private ICollection<Product> _products;

        /// <summary>
        /// Gets or sets the name
        /// </summary>
        public virtual string Name
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the tagged product count
        /// </summary>
        public virtual int ProductCount
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the product variants
        /// </summary>
        public virtual ICollection<Product> Products
        {
            get
            {
                return _products ?? (_products = new List<Product>());
            }
            protected set
            {
                _products = value;
            }
        }
    }
}
